package com.bbznb.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

public class UserUse{
    private Integer userId;         // 用户唯一标识
    private String username;        // 用户名
    private String passwordHash;    // MD5加密后的密码
    private String mobile;          // 手机号/账号
    private LocalDateTime createTime;  // 创建时间

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPasswordHash() {
        return passwordHash;
    }

    public void setPasswordHash(String passwordHash) {
        this.passwordHash = passwordHash;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public UserUse() {
    }

    public UserUse(Integer userId, String username, String passwordHash, String mobile, LocalDateTime createTime, LocalDateTime updateTime, Integer isDeleted) {
        this.userId = userId;
        this.username = username;
        this.passwordHash = passwordHash;
        this.mobile = mobile;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    private LocalDateTime updateTime;  // 更新时间
    private Integer isDeleted;       // 逻辑删除标识
}